export class LocalStorage {
	public static init() {
		localStorage.removeItem('token')
		localStorage.removeItem('username')
		localStorage.removeItem('saveLoginStatus')
		localStorage.removeItem('uuid')
		localStorage.removeItem('avatar')
	}

	public static update(data: any) {
		localStorage.setItem('username', data.username)
		localStorage.setItem('saveLoginStatus', data.saveLoginStatus)
		localStorage.setItem('uuid', data.uuid)
		localStorage.setItem('avatar', data.avatar)
	}
}
